package com.ht.dto;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "posts")
public class Posts {


    @Field(value = "user_id")
    private Long userId;
    @Field(value = "user_name")
    private String userName;
    @Field(value = "posts_id")
    private Long postsId;
}
